package com.beyondsoft.giinii.brie.jni;

import com.beyondsoft.giinii.brie.jni.facesortInfo;;

public class FacesortJniInterface 
{
	//Init function
	public static native int facesortInit();
	//Destory function
	public static native int facesortDestroy();
	
	//Detect and clust function
	public static native facesortInfo[] faceSort(String photoPath, String OutputPath, byte initFlag);
	
	//Extract a face image from the given image
	public static native int faceExtract(String photoPath, String OutputPath);
	
	//Create a new class for a detected face image
	public static native int faceNewClass(String photoPath);
	
	//Assign a detected face image to an existing class
	public static native void faceUpdate(String photoPath, int ClsID);
	static 
	{
		System.loadLibrary("facesort");
	}

	public  static facesortInfo[] faceSortResult ( String photoPath, String outputpath, byte initFlag ){
		return  faceSort( photoPath, outputpath, initFlag) ;
	}
}
